package com.kong;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.config.server.EnableConfigServer;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <dl>
 * <dd>Description: 项目启动类</dd>
 * <dd>Company: 大诚若谷信息技术有限公司</dd>
 * <dd>@date：2017/6/12 13:04</dd>
 * <dd>@author：Kong</dd>
 * </dl>
 */
@SpringBootApplication
//申明本项目是一个配置文件服务器
@EnableConfigServer
//声明是一个Eureka的客户端
@EnableEurekaClient
@ServletComponentScan
@RestController

public class SpringCloudApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringCloudApplication.class);
    }

    @GetMapping()
    public String helloWorld() {
        return "Hello World！";
    }


}
